package io.zhifei.common.utils;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;

/**
 * <p>功能描述: 通用工具类</p>
 *
 * @author : duke
 * @version 1.0.0<br>
 * @CreateTime 2020/11/10
 */
public class ToolUtils {

    public static void copyProperties(Object source, Object target) {
        BeanUtil.copyProperties(source, target, CopyOptions.create().setIgnoreNullValue(true));
    }
}
